var app = new Vue({
    el: "#app",
    data: {
        order: []
    },
    methods: {

    },
    mounted: function() {
        axios.get("http://47.119.134.71:8080/api/order/findAll")
            .then(res => {
                if (res.data.info.code == 201) {
                    window.location = "login.html"
                    window.alert("没有登录")
                } else {
                    this.order = res.data.data
                    console.log(this.order)
                }
            })
            .catch(err => {
                console.error(err);
                window.alert("出错了")
                window.location = "index.html"
            })

    }
})